/*
 * $Id: StaffList.java 89 2012-12-28 10:57:30Z Denis.Skalsky@gmail.com $
 */
package com.globallogic.skalskyy.javabasic.valstaff;

import java.util.List;

import com.globallogic.skalskyy.javabasic.valstaff.commands.Command;
import com.globallogic.skalskyy.javabasic.valstaff.commands.CommandPool;


/**
 * StaffList is to get list of all employees.
 * @author $Author: Denis.Skalsky@gmail.com $
 * @version $Revision: 89 $
 */
public class StaffList extends Command {

	@Override
	public List<String> execute(String parameters) {
		List<Employee> listEmployee = Staff.getInstance().getList();
		
		return CommandPool.getInstance().convertEmployeesToString(listEmployee);
	}
}